<center><img src="cadastro.png"/></center><br /><br />
<fieldset style="line-height: 230%;">
    <form action="cadastro_usuario_banc.php" method="POST" >
        <b>Nome*</b><br />
        <input type="text" name="nome" id="nome" style="text-transform:uppercase;" /><br />

        <b>Sobrenome*</b><br />
        <input type="text" name="sobrenome" id="sobrenome" style="text-transform:uppercase;"/><br />

        <b> Telefone  </b><br />
        <input type="text" id="telefone" name="telefone" maxlength="14" onkeyup="mascara_telefone(this)" onkeypress='return somentenumero(event)'/><br />
        <b>Senha *</b><br />
        <input type="password" name="senha" id="senha"  /><br />

        <b>Confirmação de Senha *</b><br />
        <input type="password" name="confsenha" id="senha" /><br /><br />

        <input type="submit" value="Cadastrar"/>
        <input type="Reset" value="Apagar tudo"/>

        <input type="hidden" name="id" id="id" value="0">
    </form>
    <fieldset style="float: right; width: 20%; margin-top: -27%; margin-right: 0%; line-height: normal">
        <legend><h3>Usuarios Cadastrados</h3></legend>
        <div name="div_cadastros" id="div_cadastros" style="overflow: scroll; overflow-x: hidden">
            <?php
            $query = "SELECT nome, id FROM usuario WHERE bloqueado = 0";
            $result = mysql_query($query);
            echo "<table>";
            while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                echo '<tr>
                    <td>' . $row["nome"] . '</td>
                    <td><img src="./imagens/usuario_edit.png" onclick="document.getElementById(\'id\').value =' . $row["id"] . ';Execedicao(\'usuario\',\'' . $row["id"] . '\')"/></td>
                    <td><img src="./imagens/usuario_del.png" onclick="delecao(\'usuario\',\'' . $row["id"] . '\')"/></td>
            </tr>';
            }
            echo "</table>";
            ?>

        </div>
    </fieldset>
</fieldset>
